package com.baizhi.cmfzdemo.appControlle;

import com.baizhi.cmfzdemo.entity.CmfzGuru;
import com.baizhi.cmfzdemo.service.CmfzCounterService;
import com.baizhi.cmfzdemo.service.CmfzGuruService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by 54433 on 2019/4/12.
 */
@RestController
@RequestMapping("/cmfzGuru")
public class AppCmfzGuruController {
    @Autowired
    private CmfzGuruService cmfzGuruService;

    @RequestMapping("/showAllCmfzGuru")
    public List<CmfzGuru> showAllCmfzGuru(){
        cmfzGuruService.showAllGuru();

        return cmfzGuruService.showAllGuru();
    }

}
